package com.example.shopping_li.cart;

import java.util.List;

public class CartBean {

    /**
     * code : 200
     * message : 查询成功
     * data : [{"id":1,"commodityId":null,"count":2,"userId":26,"commodityName":"零食大礼包","commodityInfo":"网红超大巨型零食大礼包，一整箱猪饲料送女生、男友，休闲小食品","commodityPhoto":"/image/commodity/lingshidalibao.png","univalence":148,"totalprices":296},{"id":2,"commodityId":null,"count":4,"userId":26,"commodityName":"良品铺子麻辣鸭脖","commodityInfo":"良品铺子鸭脖甜辣鸭脖零食小吃休闲食品锁鲜小包装麻辣小零食解馋","commodityPhoto":"/image/commodity/yabo.png","univalence":25.5,"totalprices":102},{"id":3,"commodityId":null,"count":1,"userId":26,"commodityName":"森马斜挎包女","commodityInfo":"[toyoya联名系列]森马斜挎包女2021网红迷你硬壳旅行箱单肩小方包\r\n","commodityPhoto":"/image/commodity/senma.png","univalence":129.9,"totalprices":129.9}]
     */

    private int code;
    private String message;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 1
         * commodityId : null
         * count : 2
         * userId : 26
         * commodityName : 零食大礼包
         * commodityInfo : 网红超大巨型零食大礼包，一整箱猪饲料送女生、男友，休闲小食品
         * commodityPhoto : /image/commodity/lingshidalibao.png
         * univalence : 148.0
         * totalprices : 296.0
         */

        private int id;
        private Object commodityId;
        private int count;
        private int userId;
        private String commodityName;
        private String commodityInfo;
        private String commodityPhoto;
        private double univalence;
        private double totalprices;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public Object getCommodityId() {
            return commodityId;
        }

        public void setCommodityId(Object commodityId) {
            this.commodityId = commodityId;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getCommodityName() {
            return commodityName;
        }

        public void setCommodityName(String commodityName) {
            this.commodityName = commodityName;
        }

        public String getCommodityInfo() {
            return commodityInfo;
        }

        public void setCommodityInfo(String commodityInfo) {
            this.commodityInfo = commodityInfo;
        }

        public String getCommodityPhoto() {
            return commodityPhoto;
        }

        public void setCommodityPhoto(String commodityPhoto) {
            this.commodityPhoto = commodityPhoto;
        }

        public double getUnivalence() {
            return univalence;
        }

        public void setUnivalence(double univalence) {
            this.univalence = univalence;
        }

        public double getTotalprices() {
            return totalprices;
        }

        public void setTotalprices(double totalprices) {
            this.totalprices = totalprices;
        }
    }
}
